package top.codecrab.eblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.codecrab.eblog.common.response.R;
import top.codecrab.eblog.entity.User;
import top.codecrab.eblog.shiro.AccountProfile;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author codecrab
 * @since 2021-02-26
 */
public interface UserService extends IService<User> {

    R register(User user);

    AccountProfile login(String username, String password);

    R doSet(AccountProfile profile);

    R sendActivateEmail(String email);

    R sendForgetEmail(String email, String code);

    R adminDoSet(AccountProfile user);
}
